package io.rehuo.modules.app.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.rehuo.modules.app.dao.SysDictDataDao;
import io.rehuo.modules.app.entity.SysDictData;
import io.rehuo.modules.app.service.SysDictDataService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shiguang on 2022/9/13 9:54
 */
@Service("dictDataService")
public class SysDictDataServiceImpl extends ServiceImpl<SysDictDataDao, SysDictData> implements SysDictDataService {

    @Override
    public List<SysDictData> getList(String type) {
        return baseMapper.selectList(new QueryWrapper<SysDictData>().eq("dict_type",type).orderByAsc("dict_sort"));
    }
}
